package com.entity;

import java.math.BigDecimal;
/**
 * Created by he on 2025/3/3 19:38
 * 美发店员工实体类
 */
public class Employee extends BaseEntity {

    // 员工ID
    private int employeeId;
    // 员工姓名
    private String employeeName;
    // 员工类型
    private String employeeType;
    // 员工级别
    private int employeeLevel;
    // 员工电话
    private String phone;
    // 员工附加价格
    private BigDecimal employeePrice;
    // 员工总业绩
    private BigDecimal profit;
    // 员工照片
    private String employeeImg;

//初始化Employee对象
    public Employee(int employeeId, String employeeName, String employeeType, int employeeLevel, String phone, BigDecimal employeePrice, BigDecimal profit, String employeeImg) {
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.employeeType = employeeType;
        this.employeeLevel = employeeLevel;
        this.phone = phone;
        this.employeePrice = employeePrice;
        this.profit = profit;
        this.employeeImg = employeeImg;
    }

    // 无参构造函数
    public Employee() {
    }

// 获取id
    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeType() {
        return employeeType;
    }

    public void setEmployeeType(String employeeType) {
        this.employeeType = employeeType;
    }

    public int getEmployeeLevel() {
        return employeeLevel;
    }

    public void setEmployeeLevel(int employeeLevel) {
        this.employeeLevel = employeeLevel;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getEmployeePrice() {
        return employeePrice;
    }

    public void setEmployeePrice(BigDecimal employeePrice) {
        this.employeePrice = employeePrice;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public String getEmployeeImg() {
        return employeeImg;
    }

    public void setEmployeeImg(String employeeImg) {
        this.employeeImg = employeeImg;
    }

    @Override
    public String toString() {
        // 重写toString()方法，返回Employee对象的字符串表示
        return "Employee{" +
                "employeeId=" + employeeId + // 返回Employee对象的id属性
                ", EmployeeName='" + employeeName + '\'' + // 返回Employee对象的name属性
                ", EmployeeType='" + employeeType + '\'' + // 返回Employee对象的type属性
                ", EmployeeLevel=" + employeeLevel + // 返回Employee对象的level属性
                ", phone='" + phone + '\'' + // 返回Employee对象的phone属性
                ", EmployeePrice=" + employeePrice + // 返回Employee对象的price属性
                ", profit=" + profit + // 返回Employee对象的profit属性
                ", employeeImg='" + employeeImg + '\'' + // 返回Employee对象的img属性
                '}'; // 返回Employee对象的字符串表示
    }
}
